home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / HDX_BACK / HDX350 / IPART.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  1.2 KB  |  54 lines

  1. /* ipart.h */
  2.  
  3. /* 
  4.  *
  5.  *
  6.  *  IBM Comparetable Hard Disk Driver
  7.  *
  8.  *  Boot sector and partitioning structures.
  9.  *
  10.  *
  11.  */
  12.  
  13.  
  14. #define ONEPART struct _onepart
  15.  
  16. ONEPART  {
  17.  
  18.     BYTE b_boot;            /* The boot indicator */
  19.     BYTE b_bhead;           /* The begining head */
  20.     BYTE b_bsector;         /* The begining sector */
  21.     BYTE b_bcyl;            /* The begining cylinder */
  22.     BYTE b_syst;            /* The system indicator */
  23.     BYTE b_ehead;           /* The ending head */
  24.     BYTE b_esector;         /* The ending sector */
  25.     BYTE b_ecyl;            /* The ending cylinder */
  26.     LONG b_relsect;         /* The relative sector */
  27.     LONG b_numsect;         /* The number of sector */
  28.  
  29. };
  30.  
  31. #define IBMROOT struct _ibmroot
  32.  
  33. IBMROOT  {
  34.  
  35.     ONEPART ibm_p[4];        /* the four ibm partitions */
  36.     WORD b_sign;            /* The signature */
  37.  
  38. };
  39.  
  40. /* Directory entry structure for IBM */
  41.  
  42. typedef struct
  43.     {
  44.         char f_name[11];        /* file name with extension */
  45.         char f_attrib;            /* file attribute */
  46.         char f_fill[10];        /* reserved */
  47.         int f_time[2];            /* file modification time */
  48.         int f_date[2];            /* file modification date */
  49.         int f_clust[2];            /* file starting cluster number */
  50.         long f_fileln;            /* file size in bytes */
  51.  
  52.     }    FCBIBM;
  53.  
  54.